package zj.p20;

import java.util.Random;

public class P01 {
	static Random random = new Random();

	public static void main(String[] args) {
		int start = 1, end = 100, target = 50;
		for (;;) {
			int cur = random.nextInt(end - start + 1) + start;
			System.out.print(cur + " ");
			if (cur == target) {
				break;
			}
		}
		System.out.println();

	}

}
